<template>
  <div>
    <h1>子组件</h1>
   
    <slot>默认插槽</slot>

    <slot name="one">具名插槽one</slot>

    <slot name="two">具名插槽two</slot>
   
  </div>
</template>
<script>
export default {
  
}
</script>

<style lang="less" scope>
div{
  border: 1px solid #000;
  margin: 10px 0;
}
  
</style>